﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace DongFangGuoKai.WMSPlatform.Domain.Models
{
    ///<summary>
    ///作业文档
    ///</summary>
    [SugarTable("DBO.t_WorkDocument")]
    public partial class t_WorkDocument
    {
        public t_WorkDocument()
        {


        }
        /// <summary>
        /// Desc:作业文档Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// Desc:库房Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? WhId { get; set; }

        /// <summary>
        /// Desc:作业状态：0-待作业、1-作业中、2-已上架；3-已下架、4-已分拣；5-已完成
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? Status { get; set; }

        /// <summary>
        /// Desc:入库单Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? RelatedOrderId { get; set; }

        /// <summary>
        /// Desc:单据类型Id
        /// Default:
        /// Nullable:True
        /// </summary>           
        public int? BillTypeId { get; set; }

        /// <summary>
        /// Desc:单据类型
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? BillTypeName { get; set; }

        /// <summary>
        /// Desc:外部ERP单据类型编码
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? ERPBillTypeCode { get; set; }

        /// <summary>
        /// Desc:计划数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? PlanQTY { get; set; }

        /// <summary>
        /// Desc:分配数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? AllocateQTY { get; set; }

        /// <summary>
        /// Desc:下架完数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? PickedQTY { get; set; }

        /// <summary>
        /// Desc:上架完数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? PutawayQTY { get; set; }

        /// <summary>
        /// Desc:已分拣数量，或配料的数量
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public decimal? SortedQTY { get; set; }

        /// <summary>
        /// Desc:打印次数
        /// Default:0
        /// Nullable:True
        /// </summary>           
        public int? PrintTimes { get; set; }

        /// <summary>
        /// Desc:开始时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// Desc:结束时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public DateTime? EndTime { get; set; }

        /// <summary>
        /// Desc:工作地点，一般为出入库月台
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string? WorkLocation { get; set; }

        /// <summary>
        /// Desc:创建日期
        /// Default:DateTime.Now
        /// Nullable:True
        /// </summary>           
        public DateTime? CreateDate { get; set; }

    }
}
